package com.nie.orderfood.service;

import com.nie.orderfood.DTO.OrderMasterDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @program: orderfood
 * @description: 订单服务层
 * @author: NieMiao
 * @create: 2018-10-10 09:12
 **/
public interface OrderService {

    //查询一个订单
    OrderMasterDTO findOne(String orderId);
    //查询所有订单
    Page<OrderMasterDTO> findList(String opendId, Pageable pageable);
    //创建一个订单
    OrderMasterDTO createOrder(OrderMasterDTO orderMasterDTO);
    //取消订单
    OrderMasterDTO cancelOrder(OrderMasterDTO orderMasterDTO);
    //完结订单
    OrderMasterDTO finishOrder(OrderMasterDTO orderMasterDTO);
    //支付订单
    OrderMasterDTO paidOrder(OrderMasterDTO orderMasterDTO);

}
